Serial.LastErrorCode

Contains the last known error in the Serial control. Some of these values are currently OS errors.

Syntax

LastErrorCode( Integer ) as


Parameters

Integer


Notes

REALbasic error class constants are as follows:

100 - AccessDenied

101 - PortNotFound

102 - InvalidOptions

Available on Windows and Mac OS X.

LastErrorCode can be set as well as read. This is useful for subclassing a Serial.